package com.my.project.eurekaconsumer.controller;

import com.my.project.eurekaconsumer.service.IHiSendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author: lsg
 * @Date: Created 2018-07-25 11:36
 */
@Controller
@RequestMapping("/hiSend")
public class HiSendController {

    @Autowired
    private IHiSendService hiSendService;

    @RequestMapping("/index")
    @ResponseBody
    public String index(){

        return hiSendService.sayHiFromClientOne("lsg");
    }
}
